﻿namespace 开发自己的配置提供者;

public class myWebConfig
{
    public ConnectStr connstr1 { get; set; }
    public AppSettings Smtp { get; set; }
}

public class ConnectStr
{
    public string ConnectionString { get; set; }
    public string providerName { get; set; }
}

public class AppSettings
{
    public string Server { get; set; }
    public int Port { get; set; }
    public string UserName { get; set; }
    public string Pwd { get; set; }
}